package com.zbdx.service;

import com.zbdx.domain.product;

import java.sql.SQLException;
import java.util.List;

public interface IGoodsService {

    //添加商品
    boolean addGoods(product product) throws SQLException;

    //编辑商品
    boolean modifyGoods(product product) throws SQLException;

    //查询所有商品
    List<product> findAll() throws SQLException;

    //根据商品类型查询商品
    List<product> findByType(String PType) throws SQLException;

    //根据商品类型查询商品
    List<product> search(String PName, String PType, String Id) throws SQLException;

    //根据ID查询商品信息
    product findById(int PId) throws SQLException;
    //根据商品Id删除商品信息
    boolean removeById(int id) throws SQLException;

    boolean removeSelect(List<Integer> ids) throws SQLException;
}
